﻿using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.FileProviders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cl.Model.DataBaseEntityDtos.Shops.BaseShop
{
    public class BaseShopInputDto
    {

        public int Id { get; set; }

        public int UserId { get; set; }
        public string Title { get; set; } = string.Empty;

        public string Description { get; set; } = string.Empty;

        public string Address { get; set; } = string.Empty;

        /// <summary>
        /// 营业时间
        /// </summary>
        public string BusinessHours { get; set; } = string.Empty;

        /// <summary>
        /// 是否营业
        /// </summary>
        public bool IsOpenBusiness { get; set; }

        /// <summary>
        /// 营业执照
        /// </summary>
        public string BusinessLicensePath { get; set; } = string.Empty;

        /// <summary>
        /// 多个图片用,隔开存储；
        /// </summary>
        public string ShopPicturePath { get; set; } = string.Empty;

        /// <summary>
        /// 管理员审批后可以正常使用
        /// </summary>
        public string AuditState { get; set; } = string.Empty;

        public string AuditRemark { get; set; } = string.Empty;
    }

    public class ShopQualificationInputDto
    {
        public int? ShopId { get; set; }

        public int UserId { get; set; }

        public string ShopName { get; set; }

        public IFormFile? IDCardFront { get; set; }

        public IFormFile? IDCardReverse { get; set; }

        public IFormFile? BusinessLicense { get; set; }
    }

    public class ShopQualificationAuditDto
    {
        public List<int> ShopIds { get; set; }

        public string AuditResult { get; set; }

        public string AuditRemark { get; set; }
    }
}
